package com.haojii.jdo.basic;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserUnEncodedString {
	@PrimaryKey
	private String name;
	@Persistent
	private String type;

	@Persistent
	private Date date = new Date();
	
	public UserUnEncodedString() {
		
	}
	public UserUnEncodedString(String name, String type) {
		super();
		this.name = name;
		this.type = type;
	}
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "UserUnEncodedString [date=" + date + ", name=" + name
				+ ", type=" + type + "]";
	}
}
